package com.huiyuanai.film.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 灰原哀
 * @since 2022-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private Date ctime;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 影片id
     */
    private Integer mid;

    /**
     * 评分数 (0.0~5.0)
     */
    private Double rating;

    /**
     * 点赞数
     */
    private Integer fav;


}
